﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BarrageGrab
{
    public static class LambdaHelper
    {
        public static DataRow[] ExistString(DataTable dataTable, string columnName, string searchString)
        {
            return dataTable.AsEnumerable()
                            .Where(row => searchString.Contains(Convert.ToString(row[columnName]) ?? ""))
                            .ToArray();
        }
    }
}
